package com.dhsc.view.dao.impl.jyjk.zxyc;

import com.dhsc.domain.jkzx.zxjh.*;
import com.dhsc.view.dao.jyjk.zxyc.IJklxszDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Description:监控类型设置
 * @Author: CDW
 * @Date: 2023/9/20 15:53
 */
@Repository("jklxszdao")
public class JklxszDaoImpl implements IJklxszDao {

	@Autowired
	private SqlSessionTemplate viewSqlSessionTemplate;

    @Override
    public List<JkxmZdVo> selectDictionaryInfo(JkxmZdVo j) {
        return viewSqlSessionTemplate.selectList("jklxszmapper.selectDictionaryInfo",j);
    }

    @Override
    public int updateZRuleActivate(JhbsVo j) {
        return viewSqlSessionTemplate.update("jklxszmapper.updateZRuleActivate",j);
    }

    @Override
    public int delZRuleInfo(ZRuleVo z) {
        return viewSqlSessionTemplate.delete("jklxszmapper.delZRuleInfo",z);
    }

    @Override
    public List<ZRuleVo> selectFZDictionary(ZRuleVo z) {
        return viewSqlSessionTemplate.selectList("jklxszmapper.selectFZDictionary",z);
    }

    @Override
    public ZRuleVo selectzruleinfoById(ZRuleVo z) {
        return viewSqlSessionTemplate.selectOne("jklxszmapper.selectzruleinfoById",z);
    }

    @Override
    public int queryHaveAbnormalid(ZRuleVo z) {
        return viewSqlSessionTemplate.selectOne("jklxszmapper.queryHaveAbnormalid",z);
    }

    @Override
    public int insertZruleinfo(ZRuleVo z) {
        return viewSqlSessionTemplate.insert("jklxszmapper.insertZruleinfo",z);
    }

    @Override
    public List<Map<String, Object>> selectZThresholdSet(YcjkyzVo y) {
        return viewSqlSessionTemplate.selectList("jklxszmapper.selectZThresholdSet",y);
    }

    @Override
    public int addZthreshold(YcjkyzVo y) {
        return viewSqlSessionTemplate.insert("jklxszmapper.addZthreshold",y);
    }

    @Override
    public String selectZRuleAbnormalnameById(ZRuleVo z) {
        return viewSqlSessionTemplate.selectOne("jklxszmapper.selectZRuleAbnormalnameById",z);
    }

    @Override
    public int updateZruleinfo(ZRuleVo z) {
        return viewSqlSessionTemplate.update("jklxszmapper.updateZruleinfo",z);
    }

    @Override
    public int delZthreshold(YcjkyzVo y) {
        return viewSqlSessionTemplate.delete("jklxszmapper.delZthreshold",y);
    }

    @Override
    public List<FzszVo> selectzthresholdinfo(FzszVo f) {
        return viewSqlSessionTemplate.selectList("jklxszmapper.selectzthresholdinfo",f);
    }

    @Override
    public int updateZthreshold(FzszVo f) {
        return viewSqlSessionTemplate.update("jklxszmapper.updateZthreshold",f);
    }

    @Override
    public List<JkyclsVo> anomalywater(JkyclsVo j) {
        return viewSqlSessionTemplate.selectList("jklxszmapper.anomalywater",j);
    }

    @Override
    public int callprozhg(Map<String, Object> map) {
        return  viewSqlSessionTemplate.selectOne("jklxszmapper.callprozhg",map);
    }

    @Override
    public int insertExecjjrRecord(ZhgVo zhgVo) {
        return viewSqlSessionTemplate.insert("jklxszmapper.insertExecjjrRecord",zhgVo);
    }

    @Override
    public int insertzmycls(JkyclsVo jkyclsVo) {
        return viewSqlSessionTemplate.insert("jklxszmapper.insertzmycls",jkyclsVo);
    }

    @Override
    public int callprojjr(Map<String, Object> map) {
        return  viewSqlSessionTemplate.selectOne("jklxszmapper.callprojjr",map);
    }

}
